package com.ruoyi.ai.enums;

import lombok.Getter;

import java.util.Arrays;

/**
 * 聊天状态枚举
 */
@Getter
public enum PrefixFolderEnum {
    LAW("法律法规", "法律法规"),
    JUDGE("裁决文书","裁决文书"),
    SELF("自助文书","自助文书"),
    ;

    private final String type;
    private final String desc;

    PrefixFolderEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static PrefixFolderEnum getByType(String type) {
        return Arrays.stream(values()).filter(c -> c.getType().equals(type)).findFirst().orElse(null);
    }
}
